package com.bdc.whatwhat.adapters;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.util.Log;
import android.view.View;

import com.bdc.whatwhat.fragments.APropos.AncotoAProposFragment;
import com.bdc.whatwhat.fragments.APropos.LibrariesAProposFragment;
import com.bdc.whatwhat.fragments.APropos.WhatWhatAProposFragment;

import java.util.HashMap;

/**
 * Created by dev-w8-gfi on 16/07/2014.
 */
public class ViewPagerAdapter extends FragmentPagerAdapter {

    public ViewPagerAdapter(FragmentManager fm) {
        super(fm);
    }


    @Override
    public Fragment getItem(int index) {
            switch (index) {

                case 0:
                    return WhatWhatAProposFragment.newInstance();
                case 1:
                    return LibrariesAProposFragment.newInstance();
                case 2:
                    return AncotoAProposFragment.newInstance();
                default: return WhatWhatAProposFragment.newInstance();
            }
    }

    @Override
    public int getCount() {
        return 3;
    }


}
